package com.mdb.open.trade.domain.po.product;

import com.baomidou.mybatisplus.annotation.*;
import com.mdb.bc.api.data.DataObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
* 类描述：
*  额度恢复记录表实体类
*
* @author liuyi
* @date 2019-07-13
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("limit_recover_rec")
public class LimitRecoverRec extends DataObjectBase {

    private static final long serialVersionUID = 1L;
    /**
    * 主键ID
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 编号
    */
    @TableField("seq_no")
    private String seqNo;

    /**
    * 额度编号
    */
    @TableField("limit_no")
    private String limitNo;

    /**
    * 额度总额
    */
    @TableField("total_bal")
    private BigDecimal totalBal;

    /**
    * 编号使用额度
    */
    @TableField("use_bal")
    private BigDecimal useBal;

    /**
    * 本次恢复额度
    */
    @TableField("recover_bal")
    private BigDecimal recoverBal;

    /**
    * 备注
    */
    private String remark;

    /**
    * 创建者No
    */
    @TableField(value = "create_user_id", insertStrategy = FieldStrategy.NOT_NULL)
    private String createUserId;

    /**
    * 创建者
    */
    @TableField(value = "create_user_name", insertStrategy = FieldStrategy.NOT_NULL)
    private String createUserName;

    /**
    * 创建时间
    */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
    * 修改时间
    */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
